package com.erp.erp_servers.WjCatalog.imp;

import com.erp.erp_dao.WjCatalog.IWjCatalogDAO;
import com.erp.erp_entitys.WjCatalog.WjCatalogEntity;
import com.erp.erp_entitys.WjCatalog.WjCatalogExample;
import com.erp.erp_servers.WjCatalog.IWjCatalogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public  class ImpWjCatalogService implements IWjCatalogService {

    @Autowired
    IWjCatalogDAO wjCatalogDAO;
    @Override
    public long countByExample(WjCatalogExample example) {
        return wjCatalogDAO.countByExample(example);
    }

    @Override
    public int deleteByExample(WjCatalogExample example) {
        return wjCatalogDAO.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return wjCatalogDAO.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(WjCatalogEntity record) {
        return wjCatalogDAO.insert(record);
    }

    @Override
    public int insertSelective(WjCatalogEntity record) {
        return wjCatalogDAO.insertSelective(record);
    }

    @Override
    public List<WjCatalogEntity> selectByExample(WjCatalogExample example) {
        return wjCatalogDAO.selectByExample(example);
    }

    @Override
    public WjCatalogEntity selectByPrimaryKey(Integer id) {
        return wjCatalogDAO.selectByPrimaryKey(id);
    }

    @Override
    public int updateByExampleSelective(WjCatalogEntity record, WjCatalogExample example) {
        return wjCatalogDAO.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(WjCatalogEntity record, WjCatalogExample example) {
        return wjCatalogDAO.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(WjCatalogEntity record) {
        return wjCatalogDAO.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(WjCatalogEntity record) {
        return wjCatalogDAO.updateByPrimaryKey(record);
    }
}
